package com.example.demo.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 * 销售部 客户关系（录入）2
 * @author 龚海千
 *
 */
@Entity
public class SaleKeHuGuanXi2 {
	private Integer id;
	private Integer years;
	private Integer month;
	private Integer yuYueWeiXiuTaiCi;//预约维修台次
	private Integer zhaoLanHuiChangWeiXiuTaiCi;//招揽回厂维修台次
	private Integer keSuShuLiang;//客诉数量
	private String keSuJiBie;//客诉级别
	private String keSuLeiBie;//客诉类别
	private Integer jieAnShuLiang;//结案数量
	private Integer cSIManYiDu;//CSI满意度
	private SaleKeHuGuanXi salekehuguanxi;
	private Date beginDate;//起始日期
	private Date endDate;//起始日期
	@Id
	@GeneratedValue
	@JsonIgnore
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getYears() {
		return years;
	}
	public void setYears(Integer years) {
		this.years = years;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	public Integer getYuYueWeiXiuTaiCi() {
		return yuYueWeiXiuTaiCi;
	}
	public void setYuYueWeiXiuTaiCi(Integer yuYueWeiXiuTaiCi) {
		this.yuYueWeiXiuTaiCi = yuYueWeiXiuTaiCi;
	}
	public Integer getZhaoLanHuiChangWeiXiuTaiCi() {
		return zhaoLanHuiChangWeiXiuTaiCi;
	}
	public void setZhaoLanHuiChangWeiXiuTaiCi(Integer zhaoLanHuiChangWeiXiuTaiCi) {
		this.zhaoLanHuiChangWeiXiuTaiCi = zhaoLanHuiChangWeiXiuTaiCi;
	}
	public Integer getKeSuShuLiang() {
		return keSuShuLiang;
	}
	public void setKeSuShuLiang(Integer keSuShuLiang) {
		this.keSuShuLiang = keSuShuLiang;
	}
	public String getKeSuJiBie() {
		return keSuJiBie;
	}
	public void setKeSuJiBie(String keSuJiBie) {
		this.keSuJiBie = keSuJiBie;
	}
	public String getKeSuLeiBie() {
		return keSuLeiBie;
	}
	public void setKeSuLeiBie(String keSuLeiBie) {
		this.keSuLeiBie = keSuLeiBie;
	}
	public Integer getJieAnShuLiang() {
		return jieAnShuLiang;
	}
	public void setJieAnShuLiang(Integer jieAnShuLiang) {
		this.jieAnShuLiang = jieAnShuLiang;
	}
	public Integer getcSIManYiDu() {
		return cSIManYiDu;
	}
	public void setcSIManYiDu(Integer cSIManYiDu) {
		this.cSIManYiDu = cSIManYiDu;
	}
	@ManyToOne
	public SaleKeHuGuanXi getSalekehuguanxi() {
		return salekehuguanxi;
	}
	public void setSalekehuguanxi(SaleKeHuGuanXi salekehuguanxi) {
		this.salekehuguanxi = salekehuguanxi;
	}
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	
}
